<?php
namespace Admin\Controller;
use Think\Controller;
class BaseController extends Controller{
	function _initialize(){
		//判断是否登录
		if(!isset($_SESSION['adminid'])){
			$this->redirect("Admin/Login/login");
			exit();
		}
	}
}